Imports Castle.ActiveRecord

Namespace Model

    ''' <summary>
    '''	Gerado por MyGeneration usando o template ActiveRecord Object Mapper-1.0.3
    '''	Criado em 30/09/2010 14:56:31
    ''' </summary>
    ''' <remarks></remarks>
    <Serializable(), ActiveRecord("nfretorno", DynamicUpdate:=True)> _
    Public Class Nfretorno
        Inherits ActiveRecordBase(Of Model.Nfretorno)

        Private _Nf As Model.Nf = New Model.Nf
        Private _cd_nfretorno As Integer
        Private _nfret_sefaz As String
        Private _nfret_nome As String
        Private _nfret_data As DateTime



        <PrimaryKey(PrimaryKeyType.Sequence, SequenceName:="nfretorno_cd_nfretorno_seq")> _
        Public Property cd_nfretorno() As Integer
            Get
                Return _cd_nfretorno
            End Get
            Set(ByVal value As Integer)
                _cd_nfretorno = value
            End Set
        End Property

        <BelongsTo("cd_nf")> _
        Public Property Nf() As Model.Nf
            Get
                Return _Nf
            End Get
            Set(ByVal value As Model.Nf)
                _Nf = value
            End Set
        End Property

        <[Property]("nfret_sefaz")> _
        Public Property nfret_sefaz() As String
            Get
                Return _nfret_sefaz
            End Get
            Set(ByVal value As String)
                _nfret_sefaz = value
            End Set
        End Property

        <[Property]("nfret_nome")> _
        Public Property nfret_nome() As String
            Get
                Return _nfret_nome
            End Get
            Set(ByVal value As String)
                _nfret_nome = value
            End Set
        End Property

        <[Property]("nfret_data")> _
        Public Property nfret_data() As DateTime
            Get
                Return _nfret_data
            End Get
            Set(ByVal value As DateTime)
                _nfret_data = value
            End Set
        End Property
    End Class
End Namespace
